import { service as request, BasePath } from '../request'

/**
 *  添加路线
 */
export const addRoute = () => request({
  url: `${BasePath}/route`,
  method: 'POST'
})
/**
 * 删除路线信息
 * @param {String} ids 路线id集合  多个id之间用','分割
 */
export const deleteRoute = (ids) => request({
  url: `${BasePath}/route/${ids}`,
  method: 'delete'
})
/**
 * 编辑路线信
 * @param {object} data 编辑后的路线信息
 */
export const editRoute = (data) => request({
  url: `${BasePath}/route`,
  method: 'put',
  data
})
